#ifndef LEVEL_H
#define LEVEL_H


#include <map>
#include <SFML/Graphics.hpp>
#include <gtest/gtest.h>
#include "SpriteEnum.h"
#include "CharacterManager.h"
#include <vector>
#include "XMLEnum.h"
#include "MusicEnum.h"
#include <map>
#include "tinyxml2.h"
class Character;

class Level{

public:
	Level(CharacterManager &characterManager);
	void configure();
	std::map<int, Character*> &getCharacterMap();
	static int getCurrentLevel();
	static std::string getLevelText();
	static std::string getPath(SpriteEnum sprite);
	static std::string getMusicPath(MusicEnum music);
	static void setLevel(int x);
	int getNumberLevel();



private:
	void parseXML();
	static int currentLevel;
	int numberLevel;
	int numberEnemy;
	std::vector<int> healthVector;
	std::vector<sf::Vector2f> sizeVector;
	std::vector<SpriteEnum> spriteVector;
	static std::map<std::string, std::string>pathMap;
	SpriteEnum background;
	SpriteEnum bulletSprite;
	SpriteEnum characterSprite;
	sf::Vector2f position;
	sf::Vector2f size;
	CharacterManager _characterManager;
	sf::Vector2f xmlToVector2f(XMLEnum);
	static tinyxml2::XMLDocument doc;
	static std::string levelText;
	


	//----player


};





#endif